package com.macrohard.mapper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName activity
 */
@TableName(value ="activity")
public class Activity implements Serializable {
    /**
     *
     */
    @TableId(value = "r_id", type = IdType.AUTO)
    private Integer rId;

    /**
     *
     */
    @TableField(value = "r_name")
    private String rName;

    /**
     *
     */
    @TableField(value = "r_T_id")
    private String rTId;

    /**
     *  活动负责教师
     */
    @TableField(exist = false)
    private Teacher rT;

    /**
     *
     */
    @TableField(value = "r_picture")
    private String rPicture;

    /**
     *
     */
    @TableField(value = "r_introduction")
    private String rIntroduction;

    /**
     *
     */
    @TableField(value = "r_type")
    private Integer rType;

    /**
     *
     */
    @TableField(value = "r_status")
    private Integer rStatus;

    /**
     *
     */
    @TableField(value = "r_college")
    private String rCollege;

    /**
     *
     */
    @TableField(value = "r_address")
    private Integer rAddress;

    @TableField(exist = false)
    private Address rAddressBody;

    /**
     *
     */
    @TableField(value = "r_startTime")
    private Date rStarttime;

    /**
     *
     */
    @TableField(value = "r_endTime")
    private Date rEndtime;

    /**
     *
     */
    @TableField(value = "r_startTimeTwo")
    private Date rStarttimetwo;

    /**
     *
     */
    @TableField(value = "r_endTimeTwo")
    private Date rEndtimetwo;

    /**
     *
     */
    @TableField(value = "r_createTime")
    private Date rCreatetime;

    /**
     *
     */
    @TableField(value = "r_changeTime")
    private Date rChangetime;

    /**
     *
     */
    @TableField(value = "r_popular")
    private Integer rPopular;

    /**
     *
     */
    @TableField(value = "r_zixun")
    private String rZixun;

    /**
     *
     */
    @TableField(value = "r_searchnum")
    private Integer rSearchnum;

    /**
     *
     */
    @TableField(value = "r_clicknum")
    private Integer rClicknum;

    /**
     *
     */
    @TableField(value = "r_maximum")
    private Integer rMaximum;

    /**
     *
     */
    @TableField(value = "r_nowmum")
    private Integer rNowmum;

    /**
     *
     */
    @TableField(value = "r_credit")
    private Double rCredit;

    /**
     *
     */
    @TableField(value = "r_item")
    private Integer rItem;

    /**
     *
     */
    @TableField(value = "r_recsign")
    private Integer rRecsign;

    /**
     * 轮播图置换状态
     */
    @TableField(value = "r_tu")
    private Integer rTu;

    /**
     *
     */
    @TableField(value = "r_zdcollege")
    private Integer rZdcollege;

    /**
     *
     */
    @TableField(value = "r_qrcode")
    private String rQrcode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Address getrAddressBody() {
        return rAddressBody;
    }

    public void setrAddressBody(Address rAddressBody) {
        this.rAddressBody = rAddressBody;
    }

    public Teacher getrT() {
        return rT;
    }

    public void setrT(Teacher rT) {
        this.rT = rT;
    }

    /**
     *
     */
    public Integer getrId() {
        return rId;
    }

    /**
     *
     */
    public void setrId(Integer rId) {
        this.rId = rId;
    }

    /**
     *
     */
    public String getrName() {
        return rName;
    }

    /**
     *
     */
    public void setrName(String rName) {
        this.rName = rName;
    }

    /**
     *
     */
    public String getrTId() {
        return rTId;
    }

    /**
     *
     */
    public void setrTId(String rTId) {
        this.rTId = rTId;
    }

    /**
     *
     */
    public String getrPicture() {
        return rPicture;
    }

    /**
     *
     */
    public void setrPicture(String rPicture) {
        this.rPicture = rPicture;
    }

    /**
     *
     */
    public String getrIntroduction() {
        return rIntroduction;
    }

    /**
     *
     */
    public void setrIntroduction(String rIntroduction) {
        this.rIntroduction = rIntroduction;
    }

    /**
     *
     */
    public Integer getrType() {
        return rType;
    }

    /**
     *
     */
    public void setrType(Integer rType) {
        this.rType = rType;
    }

    /**
     *
     */
    public Integer getrStatus() {
        return rStatus;
    }

    /**
     *
     */
    public void setrStatus(Integer rStatus) {
        this.rStatus = rStatus;
    }

    /**
     *
     */
    public String getrCollege() {
        return rCollege;
    }

    /**
     *
     */
    public void setrCollege(String rCollege) {
        this.rCollege = rCollege;
    }

    /**
     *
     */
    public Integer getrAddress() {
        return rAddress;
    }

    /**
     *
     */
    public void setrAddress(Integer rAddress) {
        this.rAddress = rAddress;
    }

    /**
     *
     */
    public Date getrStarttime() {
        return rStarttime;
    }

    /**
     *
     */
    public void setrStarttime(Date rStarttime) {
        this.rStarttime = rStarttime;
    }

    /**
     *
     */
    public Date getrEndtime() {
        return rEndtime;
    }

    /**
     *
     */
    public void setrEndtime(Date rEndtime) {
        this.rEndtime = rEndtime;
    }

    /**
     *
     */
    public Date getrStarttimetwo() {
        return rStarttimetwo;
    }

    /**
     *
     */
    public void setrStarttimetwo(Date rStarttimetwo) {
        this.rStarttimetwo = rStarttimetwo;
    }

    /**
     *
     */
    public Date getrEndtimetwo() {
        return rEndtimetwo;
    }

    /**
     *
     */
    public void setrEndtimetwo(Date rEndtimetwo) {
        this.rEndtimetwo = rEndtimetwo;
    }

    /**
     *
     */
    public Date getrCreatetime() {
        return rCreatetime;
    }

    /**
     *
     */
    public void setrCreatetime(Date rCreatetime) {
        this.rCreatetime = rCreatetime;
    }

    /**
     *
     */
    public Date getrChangetime() {
        return rChangetime;
    }

    /**
     *
     */
    public void setrChangetime(Date rChangetime) {
        this.rChangetime = rChangetime;
    }

    /**
     *
     */
    public Integer getrPopular() {
        return rPopular;
    }

    /**
     *
     */
    public void setrPopular(Integer rPopular) {
        this.rPopular = rPopular;
    }

    /**
     *
     */
    public String getrZixun() {
        return rZixun;
    }

    /**
     *
     */
    public void setrZixun(String rZixun) {
        this.rZixun = rZixun;
    }

    /**
     *
     */
    public Integer getrSearchnum() {
        return rSearchnum;
    }

    /**
     *
     */
    public void setrSearchnum(Integer rSearchnum) {
        this.rSearchnum = rSearchnum;
    }

    /**
     *
     */
    public Integer getrClicknum() {
        return rClicknum;
    }

    /**
     *
     */
    public void setrClicknum(Integer rClicknum) {
        this.rClicknum = rClicknum;
    }

    /**
     *
     */
    public Integer getrMaximum() {
        return rMaximum;
    }

    /**
     *
     */
    public void setrMaximum(Integer rMaximum) {
        this.rMaximum = rMaximum;
    }

    /**
     *
     */
    public Integer getrNowmum() {
        return rNowmum;
    }

    /**
     *
     */
    public void setrNowmum(Integer rNowmum) {
        this.rNowmum = rNowmum;
    }

    /**
     *
     */
    public Double getrCredit() {
        return rCredit;
    }

    /**
     *
     */
    public void setrCredit(Double rCredit) {
        this.rCredit = rCredit;
    }

    /**
     *
     */
    public Integer getrItem() {
        return rItem;
    }

    /**
     *
     */
    public void setrItem(Integer rItem) {
        this.rItem = rItem;
    }

    /**
     *
     */
    public Integer getrRecsign() {
        return rRecsign;
    }

    /**
     *
     */
    public void setrRecsign(Integer rRecsign) {
        this.rRecsign = rRecsign;
    }

    /**
     * 轮播图置换状态
     */
    public Integer getrTu() {
        return rTu;
    }

    /**
     * 轮播图置换状态
     */
    public void setrTu(Integer rTu) {
        this.rTu = rTu;
    }

    /**
     *
     */
    public Integer getrZdcollege() {
        return rZdcollege;
    }

    /**
     *
     */
    public void setrZdcollege(Integer rZdcollege) {
        this.rZdcollege = rZdcollege;
    }

    /**
     *
     */
    public String getrQrcode() {
        return rQrcode;
    }

    /**
     *
     */
    public void setrQrcode(String rQrcode) {
        this.rQrcode = rQrcode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activity other = (Activity) that;
        return (this.getrId() == null ? other.getrId() == null : this.getrId().equals(other.getrId()))
                && (this.getrName() == null ? other.getrName() == null : this.getrName().equals(other.getrName()))
                && (this.getrTId() == null ? other.getrTId() == null : this.getrTId().equals(other.getrTId()))
                && (this.getrPicture() == null ? other.getrPicture() == null : this.getrPicture().equals(other.getrPicture()))
                && (this.getrIntroduction() == null ? other.getrIntroduction() == null : this.getrIntroduction().equals(other.getrIntroduction()))
                && (this.getrType() == null ? other.getrType() == null : this.getrType().equals(other.getrType()))
                && (this.getrStatus() == null ? other.getrStatus() == null : this.getrStatus().equals(other.getrStatus()))
                && (this.getrCollege() == null ? other.getrCollege() == null : this.getrCollege().equals(other.getrCollege()))
                && (this.getrAddress() == null ? other.getrAddress() == null : this.getrAddress().equals(other.getrAddress()))
                && (this.getrStarttime() == null ? other.getrStarttime() == null : this.getrStarttime().equals(other.getrStarttime()))
                && (this.getrEndtime() == null ? other.getrEndtime() == null : this.getrEndtime().equals(other.getrEndtime()))
                && (this.getrStarttimetwo() == null ? other.getrStarttimetwo() == null : this.getrStarttimetwo().equals(other.getrStarttimetwo()))
                && (this.getrEndtimetwo() == null ? other.getrEndtimetwo() == null : this.getrEndtimetwo().equals(other.getrEndtimetwo()))
                && (this.getrCreatetime() == null ? other.getrCreatetime() == null : this.getrCreatetime().equals(other.getrCreatetime()))
                && (this.getrChangetime() == null ? other.getrChangetime() == null : this.getrChangetime().equals(other.getrChangetime()))
                && (this.getrPopular() == null ? other.getrPopular() == null : this.getrPopular().equals(other.getrPopular()))
                && (this.getrZixun() == null ? other.getrZixun() == null : this.getrZixun().equals(other.getrZixun()))
                && (this.getrSearchnum() == null ? other.getrSearchnum() == null : this.getrSearchnum().equals(other.getrSearchnum()))
                && (this.getrClicknum() == null ? other.getrClicknum() == null : this.getrClicknum().equals(other.getrClicknum()))
                && (this.getrMaximum() == null ? other.getrMaximum() == null : this.getrMaximum().equals(other.getrMaximum()))
                && (this.getrNowmum() == null ? other.getrNowmum() == null : this.getrNowmum().equals(other.getrNowmum()))
                && (this.getrCredit() == null ? other.getrCredit() == null : this.getrCredit().equals(other.getrCredit()))
                && (this.getrItem() == null ? other.getrItem() == null : this.getrItem().equals(other.getrItem()))
                && (this.getrRecsign() == null ? other.getrRecsign() == null : this.getrRecsign().equals(other.getrRecsign()))
                && (this.getrTu() == null ? other.getrTu() == null : this.getrTu().equals(other.getrTu()))
                && (this.getrZdcollege() == null ? other.getrZdcollege() == null : this.getrZdcollege().equals(other.getrZdcollege()))
                && (this.getrQrcode() == null ? other.getrQrcode() == null : this.getrQrcode().equals(other.getrQrcode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getrId() == null) ? 0 : getrId().hashCode());
        result = prime * result + ((getrName() == null) ? 0 : getrName().hashCode());
        result = prime * result + ((getrTId() == null) ? 0 : getrTId().hashCode());
        result = prime * result + ((getrPicture() == null) ? 0 : getrPicture().hashCode());
        result = prime * result + ((getrIntroduction() == null) ? 0 : getrIntroduction().hashCode());
        result = prime * result + ((getrType() == null) ? 0 : getrType().hashCode());
        result = prime * result + ((getrStatus() == null) ? 0 : getrStatus().hashCode());
        result = prime * result + ((getrCollege() == null) ? 0 : getrCollege().hashCode());
        result = prime * result + ((getrAddress() == null) ? 0 : getrAddress().hashCode());
        result = prime * result + ((getrStarttime() == null) ? 0 : getrStarttime().hashCode());
        result = prime * result + ((getrEndtime() == null) ? 0 : getrEndtime().hashCode());
        result = prime * result + ((getrStarttimetwo() == null) ? 0 : getrStarttimetwo().hashCode());
        result = prime * result + ((getrEndtimetwo() == null) ? 0 : getrEndtimetwo().hashCode());
        result = prime * result + ((getrCreatetime() == null) ? 0 : getrCreatetime().hashCode());
        result = prime * result + ((getrChangetime() == null) ? 0 : getrChangetime().hashCode());
        result = prime * result + ((getrPopular() == null) ? 0 : getrPopular().hashCode());
        result = prime * result + ((getrZixun() == null) ? 0 : getrZixun().hashCode());
        result = prime * result + ((getrSearchnum() == null) ? 0 : getrSearchnum().hashCode());
        result = prime * result + ((getrClicknum() == null) ? 0 : getrClicknum().hashCode());
        result = prime * result + ((getrMaximum() == null) ? 0 : getrMaximum().hashCode());
        result = prime * result + ((getrNowmum() == null) ? 0 : getrNowmum().hashCode());
        result = prime * result + ((getrCredit() == null) ? 0 : getrCredit().hashCode());
        result = prime * result + ((getrItem() == null) ? 0 : getrItem().hashCode());
        result = prime * result + ((getrRecsign() == null) ? 0 : getrRecsign().hashCode());
        result = prime * result + ((getrTu() == null) ? 0 : getrTu().hashCode());
        result = prime * result + ((getrZdcollege() == null) ? 0 : getrZdcollege().hashCode());
        result = prime * result + ((getrQrcode() == null) ? 0 : getrQrcode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rId=").append(rId);
        sb.append(", rName=").append(rName);
        sb.append(", rTId=").append(rTId);
        sb.append(", rPicture=").append(rPicture);
        sb.append(", rIntroduction=").append(rIntroduction);
        sb.append(", rType=").append(rType);
        sb.append(", rStatus=").append(rStatus);
        sb.append(", rCollege=").append(rCollege);
        sb.append(", rAddress=").append(rAddress);
        sb.append(", rStarttime=").append(rStarttime);
        sb.append(", rEndtime=").append(rEndtime);
        sb.append(", rStarttimetwo=").append(rStarttimetwo);
        sb.append(", rEndtimetwo=").append(rEndtimetwo);
        sb.append(", rCreatetime=").append(rCreatetime);
        sb.append(", rChangetime=").append(rChangetime);
        sb.append(", rPopular=").append(rPopular);
        sb.append(", rZixun=").append(rZixun);
        sb.append(", rSearchnum=").append(rSearchnum);
        sb.append(", rClicknum=").append(rClicknum);
        sb.append(", rMaximum=").append(rMaximum);
        sb.append(", rNowmum=").append(rNowmum);
        sb.append(", rCredit=").append(rCredit);
        sb.append(", rItem=").append(rItem);
        sb.append(", rRecsign=").append(rRecsign);
        sb.append(", rTu=").append(rTu);
        sb.append(", rZdcollege=").append(rZdcollege);
        sb.append(", rQrcode=").append(rQrcode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}